/* util */
import http from '@src/util/http'
/* model */
import MsgModel from '@model/MsgModel'
import { 
  AddQuestionToStandardLibModel,
  CreateChatRobotModel,
  DeleteBaoGPTQuestionModel,
  DeleteChatConversationContentModel,
  DeleteChatRobotModel,
  DeleteGPTRobotAppServiceModel,
  GenerateSimilarQuestionsModel,
  GetAddGPTRobotAppModel,
  GetBaoGPTLogListModel,
  GetBaoGPTQuestionListModel,
  GetBaoGPTSettingModel,
  GetChatContentSecurityModel, 
  GetChatConversationModel, 
  GetChatConversationShareModel, 
  GetChatDisLikeMessageModel, 
  GetChatDisLikeMessageShareModel, 
  GetChatHistoryMessageModel, 
  GetChatLikeMessageModel, 
  GetChatLikeMessageShareModel, 
  GetGPTRobotAppListModel, 
  GetGPTRobotAppModel, 
  GetGPTRobotModel, 
  GetGPTRobotOutsideModulesModel, 
  GetRobotLogCountListModel, 
  SendChatConversationContentModel, 
  SendChatConversationContentShareModel, 
  ToggleChatRobotModel, 
  UpdateBaoGPTSettingModel,
  UpdateChatRobotNameModel,
  UpdateIntelligentQAPromptWordModel,
  UpdateRobotAppIntelligentQASettingModel,
  UpdateRobotAppSettingModel,
  UpdateRobotSettingModel,
  UpdateRobotSettingModelNameModel,
  UpdateRobotSettingShareModel,
  UpdateBIRobotModel,
  UpdateRobotBiSettingModel,
  ChatSummaryModel,
  InsertStandardQuestionModel,
  UpdateStandardQuestionModel,
  QueryQuestionInStandardLibModel,
  QueryQuestionInStandardLibShareModel,
  GetTextToReportsModel,
  GetBaoGPTQuestionModel,
  UpdateTranslateModel,
  RobotAppRangeInsertModel,
  RobotAppWikiTypeInsertModel,
  RobotAppWikiTypeQueryModel,
  UpdateRobotSettingReleaseChannelModel,
  CheckRepeatRobotSettingReleaseChannelModel,
  RobotQueryIMRobotIdModel,
  UpdateOpenDDAssistantModel,
  AddDingtalkAssistantDocModel,
  AddDingtalkAssistantModel,
  DingtalkAssistantDocStudyModel,
  DeleteDingtalkAssistantDocModel,
  // ChatSummaryModel
} from '@model/param/in/AI'
import { 
  AddQuestionToStandardLibResult,
  CreateChatRobotResult,
  DeleteBaoGPTQuestionResult,
  DeleteChatConversationContentResult,
  DeleteGPTRobotAppServiceResult,
  DeleteGPTRobotResult,
  GenerateSimilarQuestionsResult,
  GetAddGPTRobotAppResult,
  GetBaoGPTQuestionCountResult,
  GetBaoGPTQuestionListResult,
  GetBaoGPTQuestionLogListResult,
  GetBaoGPTQuestionResult,
  GetBaoGPTSettingResult,
  GetChatConversationResult,
  GetChatDisLikeMessageResult, 
  GetChatHistoryMessageResult, 
  GetChatLikeMessageResult, 
  GetGPTRobotOutsideModulesResult, 
  GetRobotAppListResult, 
  GetRobotAppResult, 
  GetRobotListResult, 
  GetRobotLogCountListResult, 
  GetRobotResult, 
  InsertStandardQuestionResult, 
  QueryQuestionInStandardLibResult, 
  SendChatConversationContentResult, 
  ToggleChatRobotResult, 
  UpdateBaoGPTSettingResult,
  UpdateChatRobotResult,
  UpdateRobotAppSettingResult,
  UpdateRobotSettingResult,
  UpdateStandardQuestionResult,
  GetRobotTextToReportResult,
  RobotAppRangeInsertResult,
  RobotAppWikiTypeInsertResult,
  RobotAppWikiTypeQueryResult,
  CheckRepeatRobotReleaseChannelResult,
  RobotQueryIMRobotIdResult,
  UpdateOpenDDAssistantResult,
  AddDingtalkAssistantResult,
  AddDingtalkAssistantDocResult,
  GetDingtalkAssistantDocResult,
  DingtalkAssistantDocStudyModelResult
} from '@model/param/out/AI'
import Page from '@model/Page'
import Result from '@model/Result'

/**
 * @description 获取聊天消息记录
 */
function getHistoryMessage(params: GetChatHistoryMessageModel): Promise<Result<GetChatHistoryMessageResult>> {
  return http.post('/api/voice/outside/gpt/conversation/query/content', params) as Promise<Result<GetChatHistoryMessageResult>>
}

/**
 * @description 聊天消息点赞
 */
function chatLikeMessage(params: GetChatLikeMessageModel): Promise<MsgModel<GetChatLikeMessageResult>> {
  return http.post('/api/voice/outside/gpt/conversation/like', params) as Promise<MsgModel<GetChatLikeMessageResult>>
}

/**
 * @description 聊天消息点赞
 */
function chatLikeMessageShare(params: GetChatLikeMessageShareModel): Promise<MsgModel<GetChatLikeMessageResult>> {
  return http.post('/api/voice/outside/gpt/conversation/share/like', params) as Promise<MsgModel<GetChatLikeMessageResult>>
}

/**
 * @description 聊天消息点踩
 */
function chatDisLikeMessage(params: GetChatDisLikeMessageModel): Promise<MsgModel<GetChatDisLikeMessageResult>> {
  return http.post('/api/voice/outside/gpt/conversation/dislike', params) as Promise<MsgModel<GetChatDisLikeMessageResult>>
}

/**
 * @description 聊天消息点踩
 */
function chatDisLikeMessageShare(params: GetChatDisLikeMessageShareModel): Promise<MsgModel<GetChatDisLikeMessageResult>> {
  return http.post('/api/voice/outside/gpt/conversation/share/dislike', params) as Promise<MsgModel<GetChatDisLikeMessageResult>>
}

/**
 * @description 获取内容安全
 */
function contentSecurityText(params: GetChatContentSecurityModel): Promise<MsgModel<boolean>> {
  return http.post('/api/voice/outside/contentSecurity/text', params) as Promise<MsgModel<boolean>>
}

/**
 * @description 获取小宝 GPT 设置
 */
function getBaoGPTSetting(): Promise<MsgModel<GetBaoGPTSettingResult>> {
  return http.get('/api/voice/outside/gpt/setting/get') as Promise<MsgModel<GetBaoGPTSettingResult>>
}

/**
 * @description 更新小宝 GPT 设置
 */
function updateBaoGPTSetting(params: UpdateBaoGPTSettingModel): Promise<MsgModel<UpdateBaoGPTSettingResult>> {
  return http.post('/api/voice/outside/gpt/setting/update', params) as Promise<MsgModel<UpdateBaoGPTSettingResult>>
}

/**
 * @description 获取 小宝 GPT 问题列表
 */
function getBaoGPTQuestionList(params: GetBaoGPTQuestionListModel): Promise<MsgModel<GetBaoGPTQuestionListResult>> {
  return http.post('/api/voice/outside/gpt/question/query', params, true, {
    cancelable: true
  }) as Promise<MsgModel<GetBaoGPTQuestionListResult>>
}

/**
 * @description 获取 小宝 GPT 问题 数量
 */
function getBaoGPTQuestionCount(): Promise<MsgModel<GetBaoGPTQuestionCountResult>> {
  return http.get('/api/voice/outside/gpt/question/queryCount', {}, true, {
    cancelable: true
  }) as Promise<MsgModel<GetBaoGPTQuestionCountResult>>
}

/**
 * @description 获取 小宝 GPT 日志列表
 */
function getBaoGPTQuestionLogList(params: GetBaoGPTLogListModel): Promise<MsgModel<GetBaoGPTQuestionLogListResult>> {
  return http.post('/api/voice/outside/gpt/log/query', params, true, {
    cancelable: true
  }) as Promise<MsgModel<GetBaoGPTQuestionLogListResult>>
}

/**
 * @description 删除 小宝 GPT 问题
 */
function deleteBaoGPTQuestion(params: DeleteBaoGPTQuestionModel): Promise<MsgModel<DeleteBaoGPTQuestionResult>> {
  return http.post('/api/voice/outside/gpt/question/batch/delete', params) as Promise<MsgModel<DeleteBaoGPTQuestionResult>>
}

/**
 * @description 获取 小宝 GPT 问题
 */
function getBaoGPTQuestion(params: GetBaoGPTQuestionModel): Promise<MsgModel<GetBaoGPTQuestionResult>> {
  return http.post('/api/voice/outside/gpt/question/queryById', params) as Promise<MsgModel<GetBaoGPTQuestionResult>>
}

/**
 * @description 获取机器人列表
 */
function getRobotList(): Promise<MsgModel<GetRobotListResult>> {
  return http.get('/api/voice/outside/gpt/robot/query') as Promise<MsgModel<GetRobotListResult>>
}

/**
 * @description 获取机器人应用列表
 */
function getRobotAppList(params: GetGPTRobotAppListModel): Promise<MsgModel<GetRobotAppListResult>> {
  return http.post('/api/voice/outside/gpt/robot/app/query', params) as Promise<MsgModel<GetRobotAppListResult>>
}

/**
 * @description 获取机器人应用列表
 */
function getRobotAppServiceListWithSetting(params: GetGPTRobotAppListModel): Promise<MsgModel<GetRobotAppListResult>> {
  return http.post('/api/voice/outside/gpt/robot/app/queryWithSetting', params) as Promise<MsgModel<GetRobotAppListResult>>
}

/**
 * @description 获取机器人应用列表
 */
function getRobotAppServiceListWithSettingShare(params: GetGPTRobotAppListModel): Promise<MsgModel<GetRobotAppListResult>> {
  return http.post('/api/voice/outside/gpt/robot/app/share/queryWithSetting', params) as Promise<MsgModel<GetRobotAppListResult>>
}

/**
 * @description 添加机器人应用
 */
function addRobotApp(params: GetAddGPTRobotAppModel): Promise<MsgModel<GetAddGPTRobotAppResult>> {
  return http.post('/api/voice/outside/gpt/robot/app/insert', params) as Promise<MsgModel<GetAddGPTRobotAppResult>>
}

/**
 * @description 删除机器人应用
 */
function deleteRobotApp(params: DeleteGPTRobotAppServiceModel): Promise<MsgModel<DeleteGPTRobotAppServiceResult>> {
  return http.post('/api/voice/outside/gpt/robot/app/delete', params) as Promise<MsgModel<DeleteGPTRobotAppServiceResult>>
}

/**
 * @description 获取机器人日志统计
 */
function getRobotLogCountList(params: GetRobotLogCountListModel): Promise<MsgModel<GetRobotLogCountListResult>> {
  return http.post('/api/voice/outside/gpt/log/queryLastMonth', params) as Promise<MsgModel<GetRobotLogCountListResult>>
}

/**
 * @description 获取机器人
 */
function getRobot(params: GetGPTRobotModel): Promise<MsgModel<GetRobotResult>> {
  return http.post('/api/voice/outside/gpt/robot/queryById', params) as Promise<MsgModel<GetRobotResult>>
}

/**
 * @description 获取机器人
 */
function getRobotShare(params: GetGPTRobotModel): Promise<MsgModel<GetRobotResult>> {
  return http.post('/api/voice/outside/gpt/robot/share/queryById', params) as Promise<MsgModel<GetRobotResult>>
}

/**
 * @description 获取机器人应用
 */
function getRobotApp(params: GetGPTRobotAppModel): Promise<MsgModel<GetRobotAppResult>> {
  return http.post('/api/voice/outside/gpt/robot/app/queryById', params) as Promise<MsgModel<GetRobotAppResult>>
}

/**
 *@description 更新Bi数据
 */
function updateRobotApp(params: UpdateRobotBiSettingModel): Promise<MsgModel<GetRobotAppResult>> {
  return http.post('/api/voice/outside/gpt/robot/app/updateBIPromptWord', params) as Promise<MsgModel<GetRobotAppResult>>
}

/**
 * @description 获取系统机器人
 */
function getSystemRobot(): Promise<MsgModel<GetRobotResult>> {
  return http.post('/api/voice/outside/gpt/robot/querySystem') as Promise<MsgModel<GetRobotResult>>
}

/**
 * @description 更新机器人设置
 */
function updateRobotSetting(params: UpdateRobotSettingModel): Promise<MsgModel<UpdateRobotSettingResult>> {
  return http.post('/api/voice/outside/gpt/robot/updateSetting', params) as Promise<MsgModel<UpdateRobotSettingResult>>
}

/**
 * @description 更新机器人应用设置
 */
function updateRobotAppSetting(params: UpdateRobotAppSettingModel): Promise<MsgModel<UpdateRobotAppSettingResult>> {
  return http.post('/api/voice/outside/gpt/robot/app/updateSetting', params) as Promise<MsgModel<UpdateRobotAppSettingResult>>
}

/**
 * @description 更新机器人应用 智能问答 设置
 */
function updateRobotAppIntelligentQAModule(params: UpdateRobotAppIntelligentQASettingModel): Promise<MsgModel<UpdateRobotAppSettingResult>> {
  return http.post('/api/voice/outside/gpt/robot/app/updateIntelligentQAModule', params) as Promise<MsgModel<UpdateRobotAppSettingResult>>
}

/**
 * @description 更新机器人应用 智能问答 提示词
 */
function updateIntelligentQAPromptWord(params: UpdateIntelligentQAPromptWordModel): Promise<MsgModel<UpdateRobotAppSettingResult>> {
  return http.post('/api/voice/outside/gpt/robot/app/updateIntelligentQAPromptWord', params) as Promise<MsgModel<UpdateRobotAppSettingResult>>
}

/**
 * @description 更新机器人应用 智能翻译
 */
function updateTranslate(params: UpdateTranslateModel): Promise<MsgModel<UpdateRobotAppSettingResult>> {
  return http.post('/api/voice/outside/gpt/robot/app/updateTranslate', params) as Promise<MsgModel<UpdateRobotAppSettingResult>>
}

/**
 * @description 更新机器人设置 模型名称
 */
function updateRobotSettingModelName(params: UpdateRobotSettingModelNameModel): Promise<MsgModel<UpdateRobotSettingResult>> {
  return http.post('/api/voice/outside/gpt/robot/updateModelName', params) as Promise<MsgModel<UpdateRobotSettingResult>>
}

/**
 * @description 更新机器人设置 发布渠道
 */
function updateRobotSettingReleaseChannel(params: UpdateRobotSettingReleaseChannelModel): Promise<MsgModel<UpdateRobotSettingResult>> {
  return http.post('/api/voice/outside/gpt/robot/updateReleaseChannel', params) as Promise<MsgModel<UpdateRobotSettingResult>>
}

/**
 * @description 检查机器人设置发布渠道是否重复
 */
function checkRepeatRobotSettingReleaseChannel(params: CheckRepeatRobotSettingReleaseChannelModel): Promise<MsgModel<CheckRepeatRobotReleaseChannelResult>> {
  return http.post('/api/voice/outside/gpt/robot/checkReleaseChannelRepeat', params) as Promise<MsgModel<CheckRepeatRobotReleaseChannelResult>>
}

/**
 * @description 更新机器人 是否开启钉钉AI助理
 */
function updateRobotSettingOpenDDAssistant(params: UpdateOpenDDAssistantModel): Promise<MsgModel<UpdateOpenDDAssistantResult>> {
  return http.post('/api/voice/outside/gpt/robot/updateOpenDDAssistant', params) as Promise<MsgModel<UpdateOpenDDAssistantResult>>
}

/**
 * @description 更新机器人 是否开启钉钉AI助理
 */
function addDingtalkAssistant(params: AddDingtalkAssistantModel): Promise<MsgModel<AddDingtalkAssistantResult>> {
  return http.post('/api/voice/outside/dd/assistant/add', params) as Promise<MsgModel<AddDingtalkAssistantResult>>
}

/**
 * @description 钉钉AI助理知识库文档添加
 */
function addDingtalkAssistantDoc(params: AddDingtalkAssistantDocModel): Promise<MsgModel<AddDingtalkAssistantDocResult>> {
  return http.post('/api/voice/outside/dd/assistant/add/knowledge', params) as Promise<MsgModel<AddDingtalkAssistantDocResult>>
}

/**
 * @description 钉钉AI助理知识库文档添加
 */
function getDingtalkAssistantDoc(): Promise<MsgModel<GetDingtalkAssistantDocResult>> {
  return http.get('/api/voice/outside/dd/assistant/getAssistantDoc') as Promise<MsgModel<GetDingtalkAssistantDocResult>>
}

/**
 * @description 钉钉AI助理知识库文档删除
 */
function deleteDingtalkAssistantDoc(params: DeleteDingtalkAssistantDocModel): Promise<MsgModel<GetDingtalkAssistantDocResult>> {
  return http.post('/api/voice/outside/dd/assistant/deleteAssistantDoc', params) as Promise<MsgModel<GetDingtalkAssistantDocResult>>
}

/**
 * @description 钉钉AI助理知识库文档 获取学习状态
 */
function getDingtalkAssistantDocStudy(params: DingtalkAssistantDocStudyModel): Promise<MsgModel<DingtalkAssistantDocStudyModelResult>> {
  return http.post('/api/voice/outside/dd/assistant/getKnowledgeItems', params) as Promise<MsgModel<DingtalkAssistantDocStudyModelResult>>
}

/**
 * @description 更新机器人设置 分享状态
 */
function updateRobotSettingShare(params: UpdateRobotSettingShareModel): Promise<MsgModel<UpdateRobotSettingResult>> {
  return http.post('/api/voice/outside/gpt/robot/updateShare', params) as Promise<MsgModel<UpdateRobotSettingResult>>
}

/**
 * @description 删除机器人
 */
function deleteRobot(params: DeleteChatRobotModel): Promise<MsgModel<DeleteGPTRobotResult>> {
  return http.post('/api/voice/outside/gpt/robot/delete', params) as Promise<MsgModel<DeleteGPTRobotResult>>
}

/**
 * @description 新建机器人
 */
function createRobot(params: CreateChatRobotModel): Promise<MsgModel<CreateChatRobotResult>> {
  return http.post('/api/voice/outside/gpt/robot/insert', params) as Promise<MsgModel<CreateChatRobotResult>>
}

/**
 * @description 更新机器人
 */
function updateRobotName(params: UpdateChatRobotNameModel): Promise<MsgModel<UpdateChatRobotResult>> {
  return http.post('/api/voice/outside/gpt/robot/updateName', params) as Promise<MsgModel<UpdateChatRobotResult>>
}

/**
 * @description 切换机器人状态
 */
function toggleRobot(params: ToggleChatRobotModel): Promise<MsgModel<ToggleChatRobotResult>> {
  return http.post('/api/voice/outside/gpt/robot/toggle', params) as Promise<MsgModel<ToggleChatRobotResult>>
}

/**
 * @description 初始化会话
 */
function getChatConversation(params: GetChatConversationModel): Promise<Result<GetChatConversationResult>> {
  return http.post('/api/voice/outside/gpt/conversation/init', params) as Promise<Result<GetChatConversationResult>>
}

/**
 * @description 初始化会话
 */
function getChatConversationShare(params: GetChatConversationShareModel): Promise<Result<GetChatConversationResult>> {
  return http.post('/api/voice/outside/gpt/conversation/share/init', params) as Promise<Result<GetChatConversationResult>>
}

/**
 * @description 发送会话消息
 */
function sendChatConversationContent(params: SendChatConversationContentModel): Promise<Result<SendChatConversationContentResult>> {
  return http.post('/api/voice/outside/gpt/conversation/insert/content', params) as Promise<Result<SendChatConversationContentResult>>
}

/**
 * @description 发送会话消息
 */
function sendChatConversationContentShare(params: SendChatConversationContentShareModel): Promise<Result<SendChatConversationContentResult>> {
  return http.post('/api/voice/outside/gpt/conversation/share/insert/content', params) as Promise<Result<SendChatConversationContentResult>>
}

/**
 * @description 删除会话消息
 */
function deleteChatConversationContent(params: DeleteChatConversationContentModel): Promise<Result<DeleteChatConversationContentResult>> {
  return http.post('/api/voice/outside/gpt/conversation/delete/content', params) as Promise<Result<DeleteChatConversationContentResult>>
}

/**
 * @description 获取外部应用
 */
function getRobotOutsideModulesApp(): Promise<Result<GetGPTRobotOutsideModulesResult>> {
  return http.get('/api/application/outside/appCenter/getAppList') as Promise<Result<GetGPTRobotOutsideModulesResult>>
}

/**
 * @description 生成相似问题
 */
function generateSimilarQuestions(params: GenerateSimilarQuestionsModel): Promise<Result<GenerateSimilarQuestionsResult>> {
  return http.post('/language/generate/similarQuestions', params) as Promise<Result<GenerateSimilarQuestionsResult>>
}

/**
 * @description 添加问题到标准库
 */
function addQuestionToStandardLib(params: AddQuestionToStandardLibModel): Promise<Result<AddQuestionToStandardLibResult>> {
  return http.post('/api/voice/outside/gpt/question/addToStandardLib', params) as Promise<Result<AddQuestionToStandardLibResult>>
}

/**
 * @description 新增标准问题
 */
function insertStandardQuestion(params: InsertStandardQuestionModel): Promise<Result<InsertStandardQuestionResult>> {
  return http.post('/api/voice/outside/gpt/question/insertStandardQuestion', params) as Promise<Result<InsertStandardQuestionResult>>
}

/**
 * @description 更新标准问题
 */
function updateStandardQuestion(params: UpdateStandardQuestionModel): Promise<Result<UpdateStandardQuestionResult>> {
  return http.post('/api/voice/outside/gpt/question/updateStandardQuestion', params) as Promise<Result<UpdateStandardQuestionResult>>
}

/**
 * @description 查询当前问题是否在标准库中
 */
function queryQuestionInStandardLib(params: QueryQuestionInStandardLibModel): Promise<Result<QueryQuestionInStandardLibResult>> {
  return http.post('/api/voice/outside/gpt/question/queryQuestionInStandardLib', params) as Promise<Result<QueryQuestionInStandardLibResult>>
}

/**
 * @description 查询当前问题是否在标准库中
 */
function queryQuestionInStandardLibShare(params: QueryQuestionInStandardLibShareModel): Promise<Result<QueryQuestionInStandardLibResult>> {
  return http.post('/api/voice/outside/gpt/question/share/queryQuestionInStandardLib', params) as Promise<Result<QueryQuestionInStandardLibResult>>
}

/**
 * @description 小宝机器人应用权限范围插入
 */
function robotAppRangeInsert(params: RobotAppRangeInsertModel): Promise<Result<RobotAppRangeInsertResult>> {
  return http.post('/api/voice/outside/gpt/robot/app/range/insert', params) as Promise<Result<RobotAppRangeInsertResult>>
}

/**
 * @description 小宝机器人应用知识库类型插入
 */
function robotAppWikiTypeInsert(params: RobotAppWikiTypeInsertModel): Promise<Result<RobotAppWikiTypeInsertResult>> {
  return http.post('/api/voice/outside/gpt/robot/app/wikiType/insert', params) as Promise<Result<RobotAppWikiTypeInsertResult>>
}

/**
 * @description 小宝机器人应用知识库类型查询
 */
function robotAppWikiTypeQuery(params: RobotAppWikiTypeQueryModel): Promise<Result<RobotAppWikiTypeQueryResult>> {
  return http.post('/api/voice/outside/gpt/robot/app/wikiType/query', params) as Promise<Result<RobotAppWikiTypeQueryResult>>
}

/**
 * @description 查询IM机器人ID
 */
function queryIMRobotId(params: RobotQueryIMRobotIdModel): Promise<Result<RobotQueryIMRobotIdResult>> {
  return http.get('/api/voice/outside/gpt/robot/queryIMRobotId', params) as Promise<Result<RobotQueryIMRobotIdResult>>
}

/**
 * @description 小宝工单摘要
 */
function addGPTSummary(params: ChatSummaryModel): Promise<Result<GenerateSimilarQuestionsResult>> {
  return http.post('/language/task/summary', params, true, {
    cancelable: true
  }) as Promise<Result<GenerateSimilarQuestionsResult>>
}

/**
 * @description 文本转报表
 */
function textToReports(params: GetTextToReportsModel): Promise<Result<GetRobotTextToReportResult[]>> {
  return http.post('/api/dataware/outside/custom/report/V2/text2report', params, true, {
    cancelable: true
  }) as Promise<Result<GetRobotTextToReportResult[]>>
}

function taskTest(params: any): Promise<Result<any>> {
  return http.post('/language/task/test', params) as Promise<Result<any>>
}

/**
 * @description 导出小宝工单摘要
*/
function exportSummary(params: ChatSummaryModel) {
  return http.post('/excels/aiTaskSummaryExport', params);
}

export {
  getHistoryMessage,
  chatLikeMessage,
  chatDisLikeMessage,
  contentSecurityText,
  getBaoGPTSetting,
  updateBaoGPTSetting,
  getBaoGPTQuestionList,
  deleteBaoGPTQuestion,
  getRobotList,
  deleteRobot,
  getChatConversation,
  sendChatConversationContent,
  deleteChatConversationContent,
  getBaoGPTQuestionLogList,
  toggleRobot,
  getRobot,
  getRobotOutsideModulesApp,
  updateRobotSetting,
  createRobot,
  updateRobotName,
  getChatConversationShare,
  sendChatConversationContentShare,
  chatLikeMessageShare,
  chatDisLikeMessageShare,
  generateSimilarQuestions,
  addQuestionToStandardLib,
  taskTest,
  getSystemRobot,
  updateRobotSettingModelName,
  updateRobotSettingShare,
  getRobotAppList,
  addRobotApp,
  deleteRobotApp,
  getRobotLogCountList,
  getRobotApp,
  updateRobotAppSetting,
  updateRobotAppIntelligentQAModule,
  updateIntelligentQAPromptWord,
  updateRobotApp,
  addGPTSummary,
  insertStandardQuestion,
  updateStandardQuestion,
  queryQuestionInStandardLib,
  queryQuestionInStandardLibShare,
  getBaoGPTQuestionCount,
  textToReports,
  getBaoGPTQuestion,
  exportSummary,
  updateTranslate,
  getRobotAppServiceListWithSetting,
  robotAppRangeInsert,
  robotAppWikiTypeInsert,
  robotAppWikiTypeQuery,
  getRobotAppServiceListWithSettingShare,
  getRobotShare,
  updateRobotSettingReleaseChannel,
  checkRepeatRobotSettingReleaseChannel,
  queryIMRobotId,
  updateRobotSettingOpenDDAssistant,
  addDingtalkAssistant,
  addDingtalkAssistantDoc,
  getDingtalkAssistantDoc,
  getDingtalkAssistantDocStudy,
  deleteDingtalkAssistantDoc
}